import {request} from "../request/index.js";
import {config} from "../config/index.js";

const playListDetail = async function (id, callBack, handle) {
    let params = {
        id
    }
    await request.get(config.url.playListUrl.detail, params).then(callBack).catch(handle)
}

const playListSong = async function(id, callBack, handle) {
    let params = { id }
    await request.get(config.url.playListUrl.songList, params).then(callBack).catch(handle)
}

export const playListApi = {
    playListDetail,
    playListSong
}